package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.JobRunUdf;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HQZ
 * @since 2019-12-12
 */
@Mapper
public interface JobRunUdfMapper extends BaseMapper<JobRunUdf> {
    List<JobRunUdf> getProcUdfFuncs(@Param("procId") Integer procId);
    IPage<JobRunUdf> getProcUdfFuncsByPage(Page<JobRunUdf> page, @Param("params") Map<String,Object> params);


    List<JobRunUdf> listAllUdf(@Param("procId")Long procId);

    List<JobRunUdf> selectByUdfJarIds(@Param("udfJarIds") Set<Integer> udfJarIds);
}
